set_capital = {state = 10}

oob = "COP_1936"

set_technology = {
	infantry_weapons = 1
	infantry_weapons1 = 1
	tech_mountaineers = 1
	tech_trucks = 1
	tech_support = 1		
	tech_engineers = 1
	tech_recon = 1
	gw_artillery = 1
	interwar_antiair = 1
	fuel_silos = 1
	synth_oil_experiments = 1
	basic_train = 1	
}

set_grand_doctrine = grand_battleplan
set_grand_doctrine = new_fleet_in_being

if = {
	limit = { has_dlc = "By Blood Alone" }
		set_air_oob = "COP_1936_air_bba"
		set_technology = {
			aa_lmg = 1
			aa_cannon_1 = 1
			iw_small_airframe = 1
			basic_small_airframe = 1
			engines_1 = 1
			early_bombs = 1
		}
	else = {
		### set_air_oob = "POL_1936_air_legacy"
		set_technology = {
			early_fighter = 1
			early_bomber = 1
			CAS1 = 1
		}
	}
}
if = {
	limit = {
		NOT = { has_dlc = "No Step Back" }
	}
	set_technology = {
		gwtank = 1
	}
}
if = {
	limit = {
		has_dlc = "No Step Back"
	}
	set_technology = {
		gwtank_chassis = 1
	}
}
if = {
	limit = { not = { has_dlc = "Man the Guns" } }
	set_technology = {
		early_destroyer = 1
		early_submarine = 1	
	}
}
if = {
	limit = { has_dlc = "Man the Guns" }
	set_technology = {
		basic_naval_mines = 1
		submarine_mine_laying = 1
		early_ship_hull_light = 1
		early_ship_hull_submarine = 1
		basic_ship_hull_submarine = 1
		basic_battery = 1
		basic_torpedo = 1
		basic_depth_charges = 1
	}
}

set_convoys = 20

	set_politics = {
		ruling_party = monarchism 
		last_election = "1936.1.1"
		election_frequency = 48
		elections_allowed = no
	}
	
set_popularities = {
	romanitasautocracy = 32
	ordenstaat = 11
	russiandem = 19
	monarchism = 38
}

	set_war_support = 0.1
	set_stability = 0.5
    set_research_slots = 3
	set_convoys = 10
    add_command_power = 10

set_party_name = {
    ideology = monarchism 
    long_name = "Polish-Lithuanian Monarchy"
    name = PLM
}

add_ideas = {

}

recruit_character = COP_ignacy_moscicki


if = {
	limit = {
		NOT = {
			has_dlc = "By Blood Alone"
		}
	}
	create_equipment_variant = {
		name = "PZL P.24"
		type = fighter_equipment_0
		upgrades = {
			plane_gun_upgrade = 3
			plane_range_upgrade = 0  
			plane_engine_upgrade = 1
			plane_reliability_upgrade = 3
		}
	}
}
if = {
	limit = {
		has_dlc = "By Blood Alone"
	}
	create_equipment_variant = {
		name = "PZL P.11"
		type = small_plane_airframe_0
		modules = {
			fixed_main_weapon_slot = light_mg_4x
			engine_type_slot = engine_1_1x
			special_type_slot_1 = empty
		}
		obsolete = yes
	}
	create_equipment_variant = {
		name = "PZL P.24"
		type = small_plane_airframe_0
		modules = {
			fixed_main_weapon_slot = aircraft_cannon_1_2x
			fixed_auxiliary_weapon_slot_1 = light_mg_2x
			engine_type_slot = engine_2_1x
			special_type_slot_1 = empty
		}
	}
	if = {
		limit = {
			has_dlc = "Poland: United and Ready"
		}
		create_equipment_variant = {
			name = "PZL P.23"
			type = small_plane_cas_airframe_1
			modules = {
				fixed_main_weapon_slot = bomb_locks
				engine_type_slot = engine_1_1x
				special_type_slot_1 = lmg_defense_turret
			}
			icon = "GFX_POL_CAS1_medium"
		}		
	}
	if = {
		limit = {
			NOT = { has_dlc = "Poland: United and Ready" }
		}
		create_equipment_variant = {
			name = "PZL P.23"
			type = small_plane_cas_airframe_1
			modules = {
				fixed_main_weapon_slot = bomb_locks
				engine_type_slot = engine_1_1x
				special_type_slot_1 = lmg_defense_turret
			}
		}		
	}	
}

### VARIANTS ###
# 1936 Start #
if = {
	limit = {
		has_dlc = "No Step Back"
	}

	IF = {
		limit = { has_dlc = "Poland: United and Ready"} 

		create_equipment_variant = {
			name = "TKS"
			type = light_tank_chassis_0
			parent_version = 0
			modules = {
				main_armament_slot = tank_heavy_machine_gun
				turret_type_slot = tank_light_fixed_superstructure_turret
				suspension_type_slot = tank_bogie_suspension
				armor_type_slot = tank_riveted_armor
				engine_type_slot = tank_gasoline_engine
			}
			upgrades = {
				tank_nsb_armor_upgrade = 1
				tank_nsb_engine_upgrade = 1
			}
			obsolete = yes #used for oob
			icon = "GFX_POL_basic_light_tank_medium"
		}
		create_equipment_variant = {
			name = "7TP dw"
			type = light_tank_chassis_0
			parent_version = 1
			modules = {
				main_armament_slot = tank_heavy_machine_gun
				turret_type_slot = tank_light_one_man_tank_turret
				suspension_type_slot = tank_bogie_suspension
				armor_type_slot = tank_riveted_armor
				engine_type_slot = tank_diesel_engine
				special_type_slot_1 = secondary_turret_hmg
			}
			upgrades = {
				tank_nsb_armor_upgrade = 2
				tank_nsb_engine_upgrade = 2
			}
			icon = "GFX_POL_improved_light_tank_medium"
		}
		create_equipment_variant = {
			name = "7TP jw"
			type = light_tank_chassis_0
			parent_version = 2
			modules = {
				main_armament_slot = tank_high_velocity_cannon
				turret_type_slot = tank_light_two_man_tank_turret
				suspension_type_slot = tank_bogie_suspension
				armor_type_slot = tank_riveted_armor
				engine_type_slot = tank_diesel_engine
				special_type_slot_1 = empty
			}
			upgrades = {
				tank_nsb_armor_upgrade = 2
				tank_nsb_engine_upgrade = 2
			}
			icon = "GFX_POL_improved_light_tank_medium"
		}
	}

	ELSE = {
		create_equipment_variant = {
			name = "TKS"
			type = light_tank_chassis_0
			parent_version = 0
			modules = {
				main_armament_slot = tank_heavy_machine_gun
				turret_type_slot = tank_light_fixed_superstructure_turret
				suspension_type_slot = tank_bogie_suspension
				armor_type_slot = tank_riveted_armor
				engine_type_slot = tank_gasoline_engine
			}
			upgrades = {
				tank_nsb_armor_upgrade = 1
				tank_nsb_engine_upgrade = 1
			}
			obsolete = yes #used for oob
		}
		create_equipment_variant = {
			name = "7TP dw"
			type = light_tank_chassis_0
			parent_version = 1
			modules = {
				main_armament_slot = tank_heavy_machine_gun
				turret_type_slot = tank_light_one_man_tank_turret
				suspension_type_slot = tank_bogie_suspension
				armor_type_slot = tank_riveted_armor
				engine_type_slot = tank_diesel_engine
				special_type_slot_1 = secondary_turret_hmg
			}
			upgrades = {
				tank_nsb_armor_upgrade = 2
				tank_nsb_engine_upgrade = 2
			}
		}
		create_equipment_variant = {
			name = "7TP jw"
			type = light_tank_chassis_0
			parent_version = 2
			modules = {
				main_armament_slot = tank_high_velocity_cannon
				turret_type_slot = tank_light_two_man_tank_turret
				suspension_type_slot = tank_bogie_suspension
				armor_type_slot = tank_riveted_armor
				engine_type_slot = tank_diesel_engine
				special_type_slot_1 = empty
			}
			upgrades = {
				tank_nsb_armor_upgrade = 2
				tank_nsb_engine_upgrade = 2
			}
		}
	}